package nl.haemers.ui.grids 
{
	import flash.events.MouseEvent;
	import flash.geom.Point;
	import nl.haemers.geom.BaseCell;
	import nl.haemers.utils.Logger;
	/**
	 * ...
	 * @author Jonathan Haemers
	 */
	public class ClickCell extends BaseCell
	{
		
		public function ClickCell() 
		{
			super();
		}
		
		override public function draw() : void
		{
			setCellProperties();
			
			super.draw();
		}
		
		/** Protected methods **/
		override protected function startup() : void
		{
			configListeners();
		}
		
		protected function setCellProperties() : void
		{
			cellWidth = 10;
			cellHeight = 10;
			
		}
		
		protected function configListeners() : void
		{
			useHandCursor = true;
			buttonMode = true;
			addEventListener(MouseEvent.CLICK, clickHandler);
		}
		
		protected function clickHandler(e:MouseEvent) : void
		{
			Logger.i("Clicked");
		}
	}

}